<?
if (!defined("LEVEL") || LEVEL < 30 || !defined("OK") || !isset($_SESSION['username'])) { header('location: ?'); }
if ($_SERVER['PHP_SELF'] == 'index.php') { header('location: ../../'); }
if(isset($url['a']) && isnum($url['a']) && $url['a'] > 0) { $aid = (int)$url['a']; } else { $aid = 0; }
if(isset($url['id']) && isnum($url['id']) && $url['id'] > 0) { $id = (int)$url['id']; } else { $id = 0; }

$text = "
	<table border=0 width=100%>
		<tr>
			<td><center><a href='?id,46;a,1'><img src='images/admin/conf.png' border='0' /></a><br/>
			  <a href='?id,46;a,1'>Konfigūracija</a>
		    </center></td>
			<td><center><a href='?id,46;a,2'><img src='images/admin/news.png' border='0' /></a><br/>
			  <a href='?id,46;a,2'>Naujienos</a>
		    </center></td>
			<td><center><a href='?id,46;a,3'><img src='images/admin/forum.png' border='0' /></a><br/>
			  <a href='?id,46;a,3'>Forumas</a>
		    </center></td>
			<td><center><a href='?id,46;a,4'><img src='images/admin/article.png' border='0' /></a><br/>
			  <a href='?id,46;a,4'>Straipsniai</a>
		    </center></td>
			<td><center><a href='?id,46;a,5'><img src='images/admin/vote.png' border='0' /></a><br/>
			  <a href='?id,46;a,5'>Balsavimas</a>
		    </center></td>
			<td><center><a href='?id,46;a,6'><img src='images/admin/users.png' border='0' /></a><br/>
			  <a href='?id,46;a,6'>Vartotojai</a>
		    </center></td>
		</tr>
		
		<tr>
          <td><center>
            <a href='?id,46;a,7'><img src='images/admin/projects.png' border='0' /></a><br/>
              <a href='?id,46;a,7'>Projektai</a>
          </center></td>
		  <td><center>
		    <a href='?id,46;a,8'><img src='images/admin/folder.png' border='0' /></a><br/>
              <a href='?id,46;a,8'>Failų naršyklė</a>
          </center></td>
		  <td><center>
		    <a href='?id,46;a,9'><img src='images/admin/panel.png' border='0' /></a><br/>
            <a href='?id,46;a,9'>Panelės</a>
          </center></td>
		  <td><center>
		    <a href='?id,46;a,10'><img src='images/admin/komentarai.png' border='0' /></a><br/>
            <a href='?id,46;a,10'>Komentarai</a>
          </center></td>
		  <td><center>
		    <a href='?id,46;a,11'><img src='images/admin/meniu.png' border='0' /></a><br/>
            <a href='?id,46;a,11'><font color='red'>x</font> Meniu</a>
          </center></td>
		  <td><center>
		    <a href='?id,46;a,12'><img src='images/admin/todo.png' border='0' /></a><br/>
            <a href='?id,46;a,12'><font color='red'>x</font> Todo</a>
          </center></td>
	  </tr>
		
		<tr>
          <td><center>
            <a href='?id,46;a,13'><img src='images/admin/siuntiniai.png' border='0' /></a><br/>
            <a href='?id,46;a,13'>Siuntiniai</a>
            </center></td>
		  <td><center>
		    <a href='?id,46;a,14'><img src='images/admin/pasiulymai.png' border='0' /></a><br/>
		    <a href='?id,46;a,14'><font color='red'>X</font>Pasiulymai</a>
		  </center></td>
		  <td><center>
		    <a href='?id,46;a,15'><img src='images/admin/panel.png' border='0' /></a><br/>
		    <font color='red'>UPLOAD file</font>
		  </center></td>
		  <td><center>
		    <a href='?id,46;a,16'><img src='images/admin/komentarai.png' border='0' /></a><br/>
		    <font color='red'>UPLOAD PIC</font>
		  </center></td>
		  <td><center>
		    <a href='?id,46;a,17'><img src='images/admin/meniu.png' border='0' /></a><br/>
		    <a href='?id,46;a,17'><font color='red'>!</font>Klasiu testas</a>
		  </center></td>
		  <td><center>
		    <a href='?id,46;a,12'><img src='images/admin/todo.png' border='0' /></a><br/>
			<font color='red'>X</font>
		  </center></td>
	  </tr>
	</table>
";

lentele("Administracija",$text);
unset($text);
if ($id == '46' && empty($aid)) { include_once "pokalbiai.php"; }
if ($id == '46' && $aid == '1') { include_once "config.php"; }
if ($id == '46' && $aid == '2') { include_once "naujienos.php"; }
if ($id == '46' && $aid == '3') { include_once "forumas.php"; }
if ($id == '46' && $aid == '4') { include_once "straipsniai.php"; }
if ($id == '46' && $aid == '5') { include_once "balsavimas.php"; }
if ($id == '46' && $aid == '6') { include_once "vartotojai.php"; }
if ($id == '46' && $aid == '7') { include_once "projektai.php"; }
if ($id == '46' && $aid == '8') { include_once "narsykle.php"; }
if ($id == '46' && $aid == '9') { include_once "paneles.php"; }
if ($id == '46' && $aid == '10') { include_once "komentarai.php"; }
if ($id == '46' && $aid == '11') { include_once "meniu.php"; }
if ($id == '46' && $aid == '12') { include_once "todo.php"; }
if ($id == '46' && $aid == '13') { include_once "siuntiniai.php"; }
if ($id == '46' && $aid == '14') { include_once "pasiulymai.php"; }
if ($id == '46' && $aid == '15') { include_once "upload.php"; }
if ($id == '46' && $aid == '16') { include_once "foto_upload.php"; }
if ($id == '46' && $aid == '17') { include_once "class.php"; }


?>
